cmake_minimum_required(VERSION 2.8)

project(prenstar-firmware)

set(CMAKE_BUILD_TYPE COVERAGE)
set(CMAKE_COLOR_MAKEFILE ON)
option(BUILD_TESTS "Build the tests." ON)

if (NOT "${CMAKE_TOOLCHAIN_FILE}")
  set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)
  set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/lib)
else()
  set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin-arm)
  set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/lib-arm)
endif()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
include(cmake/config.cmake)

include_directories("./include")
add_subdirectory(src)

